package top.healthylife.service.impl;/*
 *@Author GaoZeXi
 *@Created time 2020/4/18 2:47
 *@Description:
 * Step by Step  and Stand on,  You Are The Best Investment!!!
 */

import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import top.healthylife.domain.Member;
import top.healthylife.mapper.MemberMapper;
import top.healthylife.service.MemberService;

import java.util.List;
import java.util.Map;

@Service(interfaceClass = MemberService.class)
@Transactional
public class MemberServiceImpl implements MemberService {
    @Autowired
    private MemberMapper memberMapper;

    @Override
    public Member findByTelephone(String telephone) {
        return memberMapper.findByTelephone(telephone);
    }

    @Override
    public void add(Member member) {
        memberMapper.add(member);
    }

    @Override
    public Map findMemberCountByMonth(int year) {
        return memberMapper.findMemberCountByMonth(year);
    }
}
